import type { RouteRecordRaw } from 'vue-router';
export const routes: RouteRecordRaw[] = [
  {
    path: '/auth',
    name: 'Auth',
    redirect: '/auth/user',
    meta: {
      title: '权限管理',
      icon: 'lucide:user-cog',
      order: 2100,
      hideInMenu: false,
      keepAlive: true,
    },
    children: [
      {
        path: '/auth/user',
        name: 'User',
        meta: {
          title: '人员权限',
          hideInMenu: false,
          keepAlive: true,
        },
        component: () => import('#/views/auth/user.vue'),
      },
      {
        path: '/auth/admin',
        name: 'Admin',
        meta: {
          title: '人员账号',
          hideInMenu: false,
          keepAlive: true,
        },
        component: () => import('#/views/auth/admin.vue'),
      },
      {
        path:'/auth/company_tree',
        name:'CompanyTree',
        meta:{
          title:'公司组织架构',
          hideInMenu: false,
          keepAlive: true,
        },
        component:()=>import('#/views/auth/company_tree.vue'),
      }
    ],
  },
];
export default routes;
